package com.tenthoundsqps.service.sync.dto;

/**
 * 订单同步消息实体类
 * 用于Kafka消息的序列化和反序列化
 */
public class OrderSyncMessage {
    
    /**
     * 订单ID
     */
    private Long orderId;
    
    /**
     * 操作类型：SYNC（同步）、DELETE（删除）
     */
    private String action;
    
    public OrderSyncMessage() {
    }
    
    public OrderSyncMessage(Long orderId, String action) {
        this.orderId = orderId;
        this.action = action;
    }
    
    public Long getOrderId() {
        return orderId;
    }
    
    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }
    
    public String getAction() {
        return action;
    }
    
    public void setAction(String action) {
        this.action = action;
    }
    
    @Override
    public String toString() {
        return "OrderSyncMessage{" +
                "orderId=" + orderId +
                ", action='" + action + '\'' +
                '}';
    }
}